package icu.zhangzihan.gis251.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class Comment {
    @ApiModelProperty(value = "评论ID",required = true)
    private Long id;

    @ApiModelProperty(value = "评论内容",required = true)
    private String content;

    @ApiModelProperty(value = "评论人ID",required = true)
    private String userId;

    @ApiModelProperty(value = "文章ID",required = true)
    private String contentId;

    @ApiModelProperty(value = "评论时间",required = true)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
